/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html, button, input, select, textarea {
	color: #222;
}
body {
	font-size: 1em;
	line-height: 1.4;
	font-family: 'Lato', sans-serif;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
 background: #b3d4fc;
 text-shadow: none;
}
::selection {
	background: #b3d4fc;
	text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}
/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
	vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */

textarea {
	resize: vertical;
}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}
.ir:before {
	content: "";
	display: block;
	width: 0;
	height: 150%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
	display: none !important;
	visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
	visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before, .clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}
.clearfix:after {
	clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
 *zoom: 1;
}
/* ================== MAIN STYLE ==================*/
.red-text {
	color: #F00;
}
.container-548 {
	margin: 0 auto;
	width: 548px;
}
.container-570 {
	width: 570px;
	float: left;
}
.container-860 {
	width: 860px;
	padding: 0 30px; /* Variable space==============================================*/
	margin-left: 12px;  /* Gutter left ==========================*/
	margin-right: 12px; /* Gutter right =========================*/
}
/* ========= 1) PAGE ========= */
section h1 {
	color: #F0EFEF;
	font-size: 68px;
	font-weight: 900;
	line-height: 90px;
	margin-bottom: 0;
	margin-top: 4px;
	text-align: center;
}
/* Share Button */
.share_button {
	height: 55px;
	margin: 12px auto 0;
	text-align: center;
	width: 55px;
}
.share_button a {
	color: #FFFFFF;
	float: left;
	font-size: 10px;
	font-weight: normal;
	height: 17px;
	margin-top: 1px;
	text-decoration: none;
	text-transform: uppercase;
	width: 55px;
}
.share_button a.share {
	background-image: url("../img/a_share.png");
	background-repeat: no-repeat;
}
.share_button a.fb {
	background-image: url("../img/a_fb.png");
	background-repeat: no-repeat;
	text-indent: -9999px;
	position: relative;
}
.share_button a.in {
	background-image: url("../img/a_in.png");
	background-repeat: no-repeat;
	text-indent: -9999px;
	position: relative;
}
/* Social Tooltip button */
.social {
	margin: 0 auto;
	overflow: hidden;
	width: 90px;
}
.social a {
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	text-indent: -9999px;
	position: relative;
	float: left;
}
.social .social-mail {
	background-image: url(../img/social_mail.png);
}
.social .social-fb {
	background-image: url(../img/social_fb.png);
	margin-left: 12px;
	margin-right: 12px;
}
.social .social-in {
	background-image: url(../img/social_in.png);
}
/* Shared */
.container-860 .content h3.site {
	clear: both;
	color: #595959;
	font-size: 10px;
	line-height: 24px;
	margin-bottom: 0;
	margin-top: 13px;
	text-align: center;
}
section h4, section h5 {
	color: #000000;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}
section h4 {
	font-size: 20px;
	font-weight: bold;
	line-height: 45px;
	margin-top: 6px;
}
section h5 {
	font-size: 12px;
	font-weight: 300;
	line-height: 9px;
}
.content p {
	font-size: 14px;
	line-height: 24px;
	color: #595959;
	margin-top: 0;
}
.sticky-nav {
	height: 14px;
	line-height: 14px;
	text-align: center;
	width: 100%;
	margin-bottom: 54px;
}
.sticky-nav span {
	margin-left: 4px;
	margin-right: 4px;
}
.sticky-nav a {
	color: #252525;
	font-weight: 300;
	text-decoration: none;
}
.sticky-nav a.active {
	font-weight: 400;
}
/* a) NEWS */
.news h4 {
	margin-top: 13px;
}
#slider-news {
	width: 548px;
	height: 388px;
	float: left;
	background-image: url(../img/news-slider.jpg);
	background-repeat: no-repeat;
}
/* b) ABOUT */
.about .sticky-nav {
	margin-bottom: 100px;
}
.container-548.about h4 {
	margin-top: 0;
}
/* c) CONTACT */
.container-860.contact .sticky-nav {
	margin-bottom: 42px;
}
#google-map {
	background-image: url(../img/maps-google.jpg);
	background-repeat: no-repeat;
	width: 860px;
	height: 326px;
	float: left;
	margin-bottom: 96px;
}
.container-860.contact .content p {
	text-align: center;
	color: #595959;
}
/* d) Work thumb */
.container-860 .content .thumb {
	width: 860px;
	height: 66px;
	margin-bottom: 64px;
}
.container-860 .content .thumb a {
	text-decoration: none;
}
.container-860 .content .thumb h4, .container-860 .content .thumb h5 {
	margin-top: 0;
	z-index: 999;
	position: relative;
	color: #fff;
}
.container-860 .content .thumb h5 {
	line-height: 11px;
	margin-bottom: 10px;
}
.container-860 .content .thumb a:hover .thumb-bg {
	visibility: visible;
}
.container-860 .content .thumb img {
	float: left;
}
.iphone-thumb{
	display:none;
	}
.container-860 .content .thumb .thumb-bg {
	background-image: url("../img/thumb_bg.png");
	background-repeat: repeat;
	clear: both;
	float: left;
	height: 66px;
	margin-top: -66px;
	width: 860px;
	visibility: hidden;
}
.container-860.work .content h3.site {
	margin-top: -13px;
}
/* e) into work*/
#slider-into-work {
	background-image: url(../img/info-work-slider.jpg);
	background-repeat: no-repeat;
	width: 860px;
	height: 456px;
}
.into-work aside {
	float: right;
	width: 213px;
}
.into-work aside p {
	line-height: 24px;
	padding-bottom: 3px;
	border-bottom: 1px solid #000;
	margin-bottom: 20px;
}
.container-570 p {
	color: #363636;
}
.addional-image {
	margin-top: 31px;
	clear: both;
}
.copyright {
	text-align: center;
	font-size: 14px;
	color: #363636;
	line-height: 24px;
	margin-top: 38px;
	font-weight: normal;
}
.container-860.into-work .content .thumb {
	margin-top: 45px;
}
/* Loading */
#loading {
	background-color: #c1dade;
	text-align: center;
}
#loading div {
	width: 100%;
	text-align: center;
}
#loading div a {
	display: block;
	height: 137px;
	margin: 124px auto 0;
	width: 403px;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   
   - width: 1210px
  a. if the screen smaller than 1210: show horizontal scrollbar 
  b. if screen smaller than 1024: go to mobile mode
	- Measure: http://awesomescreenshot.com/0b2tuwg6c

   ========================================================================== */

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
/* Shared */
.container-860, .container-548,#slider-news{
	margin: 0 auto;	
	}
#google-map,.content,.container-860 .content .thumb{
	margin-left:auto;
	margin-right:auto;
	}
/* Loading */
body {
	background: #f2f1f1;
}
#loading div a {
	width: 262px;
	height: 85px;
	margin-top: 131px;
}
/* News */
.container-860 {
	width: 305px;
	padding: 0;
	background: #fff;
}
.container-548 {
	width: 287px;
}
#slider-news {
	width: 287px;
	height: 203px;
}
section h1 {
	font-size: 52px;
	line-height: 64px;
	margin: 0;
}
section h4 {
	font-size: 18px;
	line-height: 42px;
	color: #595959
}
.news h4 {
	margin-top: 1px;
}
section h5 {
	font-size: 14px;
	line-height: 10px;
}
.share_button {
	margin-top: 16px;
}
.content p{
	font-size:16px;
	}
/* Contact */
#google-map{
	width: 287px;
	height: 174px;
	float:none;
	margin-bottom:46px;
	}
.container-860 .content h3.site{
	margin-top:93px;
	}
/* Work Thumb */
.content{
	
	}
.container-860 .content .thumb{
	width:294px;
	}
.container-860 .content .thumb .thumb-bg{
	width:294px;
	}
.pc-thumb{
	display:none;
	}
.iphone-thumb{
	display:block;
	}
.container-860 .content .thumb .thumb-bg{
	visibility:visible;
	height:78px;
	margin-top:-78px;
	}
.container-860 .content .thumb{
	margin-bottom:33px;
	height:213px;
	overflow:hidden;
	}
.work .sticky-nav{
	display:none;
}
/* to do margin bottom 14px at h1*/

}
 @media print,  (-o-min-device-pixel-ratio: 5/4),  (-webkit-min-device-pixel-ratio: 1.25),  (min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
* {
	background: transparent !important;
	color: #000 !important; /* Black prints faster: h5bp.com/s */
	box-shadow: none !important;
	text-shadow: none !important;
}
a,  a:visited {
	text-decoration: underline;
}
a[href]:after {
	content: " (" attr(href) ")";
}
abbr[title]:after {
	content: " (" attr(title) ")";
}
/*
     * Don't show links for images, or javascript/internal links
     */

.ir a:after,  a[href^="javascript:"]:after,  a[href^="#"]:after {
	content: "";
}
pre,  blockquote {
	border: 1px solid #999;
	page-break-inside: avoid;
}
thead {
	display: table-header-group; /* h5bp.com/t */
}
tr,  img {
	page-break-inside: avoid;
}
img {
	max-width: 100% !important;
}
 @page {
 margin: 0.5cm;
}
p,  h2,  h3 {
	orphans: 3;
	widows: 3;
}
h2,  h3 {
	page-break-after: avoid;
}
}
